package models;

import java.util.LinkedList;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;

import play.db.jpa.Model;


@Entity
public class Unit extends Model {
	
	public String UnitCode;
	public String UnitPrice;
	public String UnitLength;
	public String UnitWidth;
	public String UnitStatus;
	public String DeliveryDate;
	
	@ManyToMany
	public List<User> users;
	
	public Unit(LinkedList<String>attributes){
		this.UnitCode=attributes.get(0);
		this.UnitPrice=attributes.get(1);
		this.UnitLength=attributes.get(2);
		this.UnitWidth=attributes.get(3);
		this.UnitStatus=attributes.get(4);
		this.DeliveryDate=attributes.get(5);
		
		
	}
	
}
